import 'dart:async';

import 'package:flutter/services.dart';

class FlutterLocationPlugin {
  static const MethodChannel _channel =
      const MethodChannel('flutter_location_plugin');

  static Future<String> get platformVersion async {
    final String version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future<Map> get getLocation async {
    final Map<String,dynamic> location = new Map.from(await _channel.invokeMethod('getLocation'));
    print(location.toString());
    return location;
  }

}
